#include "constructor.h"
#include "visitordata.h"
#include "error.h"

bool Constructor::isAvailable(const std::string & className, SemanticVisitorData * data)
{
   for (unsigned  int i=0;i<Clients.size();i++)
   {
	   if (Clients[i]==className)
		   return true;
	   if (data->isAncestor(Clients[i],className))
		   return true;
   }
   return false;
}